import React, {Component} from 'react';
import MainHeader from "../../components/MainHeader";
import RouterView from "../../router/RouterView";
import {Layout,} from "antd";

let {Header, Content, Footer} = Layout;

class Main extends Component {
  render() {
    return (
      <div>
        <Layout>
          <Header> <MainHeader/></Header>
          <Content> <RouterView routes={this.props.routes}/></Content>
          <Footer/>
        </Layout>
      </div>
    );
  }
}

export default Main;
